void httpPost(int fd)
{
    int n, bytes_read = 0;
    while (1) {
        n = read(fd, _buf + bytes_read, HTTP_BUFFER_SIZE);
        if (n <= 0) {
            n = 0;
            break;
        }
        if (bytes_read + n >= HTTP_BUFFER_SIZE) {
            httpReply(fd, 2, _queue_name, 0, NULL);
            return;
        }
        bytes_read += n;
    }
    _buf[bytes_read] = '\0';
    factoryIn(_queue_name, _buf);
    httpReply(fd, 0, _queue_name, 1, NULL);
}
